package com.woniuxy.yygh.hsop.repository;

import com.woniuxy.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO: mongdb 医院操作接口
 * <P> Date: 2022/3/1:18:07
 * <P> Description:
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    /**
     * <P>Author ideaAdmin
     * <P>TODO: 判断传进来的对象是否存在 根据医院编号查询医院
     * <P>Date 18:26 2022/3/1
     * <P>* @param hoscode   
     * <P>* @return com.woniuxy.yygh.model.hosp.Hospital 
     **/
    Hospital getHospitalByHoscode(String hoscode);

    /**
     * TODO:根据医院名称做模糊查询
     **/
    List<Hospital> findHospitalByHosnameLike(String hosname);
}
